using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace StudentManagement.Application.DTOs
{
    public class RoleDTO
    {
        public int Id { get; set; }

        [Required(ErrorMessage = "角色名称不能为空")]
        [StringLength(50, ErrorMessage = "角色名称不能超过50个字符")]
        public string Name { get; set; }

        [StringLength(200, ErrorMessage = "角色描述不能超过200个字符")]
        public string Description { get; set; }

        public bool IsActive { get; set; } = true;

        // 可选：角色拥有的权限列表
        public List<PermissionDTO> Permissions { get; set; }
    }
}